import request from '@/utils/request'

// 可申请开票列表
export function getPendingList(data) {
  return request({
    url: '/paymentapplicationdetaillist1',
    method: 'post',
    data,
  })
}

// 开票科目列表
export function getSubjectList() {
  return request({
    url: '/subjectlist1',
    method: 'post',
  })
}

// 提交开票申请
export function submitRequest(data) {
  return request({
    url: '/paymentapplicationdetailsubmit',
    method: 'post',
    data,
  })
}

// 开票查询
export function getRequestList(data) {
  return request({
    url: '/billinglist',
    method: 'post',
    data,
  })
}

// 查看开票驳回理由
export function getRejectReason(data) {
  return request({
    url: '/billinglookreject',
    method: 'post',
    data,
  })
}

// 开票详情
export function getDetail(data) {
  return request({
    url: '/billingdetail',
    method: 'post',
    data,
  })
}

// 更改开票状态
export function updateInvoice(data) {
  return request({
    url: '/billingedit',
    method: 'post',
    data,
  })
}

// 查看开票关联订单
export function getOrders(data) {
  return request({
    url: '/billingorder',
    method: 'post',
    data,
  })
}

// 查看活动验收材料
export function getChecks(data) {
  return request({
    url: '/activityexpensescheckimg',
    method: 'post',
    data,
  })
}

// 开票列表【首页2021-05-28】
export function getBillingLists(data) {
  return request({
    url: '/getBillingList',
    method: 'post',
    data,
  })
}

// 开票管理【二级列表2021-05-28】
export function getBillingNextLists(data) {
  return request({
    url: '/getBillingNextList',
    method: 'post',
    data,
  })
}
